/*
Copyright (C) 2015 htmlguy
This file is part of randomcproject.

randomcproject is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

randomcproject is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have recieved a copy of the GNU General Public License
along with randomcproject.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * main.c - Initialize the program
 */

#include <stdio.h>
#include <getopt.h>
#include "print_info.h"
// Flag set by --verbose and -v
static int verbose_flag;

int main (int argc, char **argv) {
	int c;
	while(1) {
		static struct option long_options[] = {
			{"verbose", no_argument, &verbose_flag, 1}
		};
		int option_index = 0;
		c = getopt_long(argc, argv, "h", long_options, &option_index);
		if(c == -1) break;
		switch (c) {
			case 0: break;
			case 'h':
				print_info();
				break;
			case '?':
				break;
			default:
				return 0;
		}
	}
	if(verbose_flag) {
		printf("YAY I AM SOOO VERBOSE!\n");
	}
}
